package com.bw.mvvm_common.mvvm.utils;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

import com.bw.mvvm_common.BaseApplication;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/13 0013 下午 4:09
 *
 */
class ISCConnectUtils {
    public static boolean isConnect(){
        ConnectivityManager manager = (ConnectivityManager) BaseApplication.getApplication().getSystemService(Context.CONNECTIVITY_SERVICE);
        NetworkInfo info = manager.getActiveNetworkInfo();
        if (info == null)
            return false;
        return info.isConnected();
    }
}
